/* tslint:disable */
/* eslint-disable */

import React, { CSSProperties, SVGAttributes, FunctionComponent } from 'react';
import { getIconColor } from './helper';

interface Props extends Omit<SVGAttributes<SVGElement>, 'color'> {
  size?: number;
  color?: string | string[];
}

const DEFAULT_STYLE: CSSProperties = {
  display: 'block',
};

const IconSign: FunctionComponent<Props> = ({ size, color, style: _style, ...rest }) => {
  const style = _style ? { ...DEFAULT_STYLE, ..._style } : DEFAULT_STYLE;

  return (
    <svg viewBox="0 0 1024 1024" width={size + 'px'} height={size + 'px'} style={style} {...rest}>
      <path
        d="M99.264 337.92a31.968 31.968 0 0 1 1.888-3.328l81.088-129.536A96 96 0 0 1 263.616 160h496.768a96 96 0 0 1 81.376 45.056l81.376 129.952c1.056 1.696 1.92 3.424 2.624 5.184l0.448 1.28c1.376 3.808 1.952 7.712 1.824 11.52L928 768a96 96 0 0 1-96 96H192a96 96 0 0 1-96-96l-0.032-415.488a31.264 31.264 0 0 1 4.896-17.504zM864 384H160v384a32 32 0 0 0 28.256 31.776L192 800h640a32 32 0 0 0 32-32V384z m-201.376 105.376a32 32 0 0 1 2.656 42.24l-2.656 3.008-160 160.064a32 32 0 0 1-42.24 2.656l-3.008-2.688-96-96.032a32 32 0 0 1 42.24-47.904l3.008 2.656L480 626.752l137.376-137.376a32 32 0 0 1 45.248 0zM760.384 224H263.616a32 32 0 0 0-27.136 15.04L185.76 320h652.448L787.52 239.04a32 32 0 0 0-23.04-14.784L760.384 224z"
        fill={getIconColor(color, 0, '#333333')}
      />
    </svg>
  );
};

IconSign.defaultProps = {
  size: 18,
};

export default IconSign;
